package com.huiyujinrong.qiangdanbao.model;


import com.huiyujinrong.qiangdanbao.bean.LoginBean;
import com.huiyujinrong.qiangdanbao.network.AppService;

import javax.inject.Inject;

import happyloan.core.EventBusUtil;

public class LoginModel {

    private AppService service;

    @Inject LoginModel (AppService service){
        this.service=service;
    }

    public void login(String phone ,String password){
        EventBusUtil<LoginBean> util = new EventBusUtil<>();
        util.sendEvent4Call(service.login(phone,password));
    }
}
